// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'WPPDFR1.pas' rev: 5.00

#ifndef WPPDFR1HPP
#define WPPDFR1HPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Printers.hpp>	// Pascal unit
#include <FileCtrl.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <ShellAPI.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Wppdfr1
{
//-- type declarations -------------------------------------------------------
struct TWPPDF_InitRec;
typedef TWPPDF_InitRec *PWPPDF_InitRec;

#pragma pack(push, 1)
struct TWPPDF_InitRec
{
	int pagew;
	int pageh;
	int xres;
	int yres;
	int rotation;
	Graphics::TColor specialcolor;
	int left_offset;
	int top_offset;
	bool thumbnails;
	float fontmul;
} ;
#pragma pack(pop)

struct TWPPDF_LinkDef;
typedef TWPPDF_LinkDef *PWPPDF_LinkDef;

#pragma pack(push, 1)
struct TWPPDF_LinkDef
{
	int action;
	int actionmode;
	int x;
	int y;
	int w;
	int h;
	int destmode;
	int destzoom;
	char caption[256];
	char destname[256];
	int levelmode;
	int level;
	int Mode;
	int custom_action_type;
	char *custom_action;
	char *embedded_file;
	int embedded_file_len;
	int reserved;
} ;
#pragma pack(pop)

#pragma pack(push, 1)
struct TWPGraphicDef
{
	int x;
	int y;
	int w;
	int h;
	int BitmapID;
	HBITMAP BitmapHandle;
	tagBITMAPINFO *BitmapInfo;
	void *BitmapBits;
	char *StreamData;
	int StreamLen;
	int StreamMode;
	int StreamW;
	int StreamH;
	char *Filename;
	int reserved;
} ;
#pragma pack(pop)

typedef TWPGraphicDef *PWPGraphicDef;

#pragma pack(push, 1)
struct TWPDFFieldDef
{
	int x;
	int y;
	int w;
	int h;
	int typ;
	int mode;
	int value;
	char *init;
	char *defaultc;
	char *hint;
	char *text;
} ;
#pragma pack(pop)

typedef TWPDFFieldDef *PWPDFFieldDef;

typedef void __stdcall (*TWPPDF_CallBack)(void * parent, int msgid, int value, char * p);

typedef void * __stdcall (*TWPPDF_Initialize)(int asiz, int psiz, int lsiz, int wp_version, TWPPDF_CallBack 
	callback, void * parent);

typedef void __stdcall (*TWPPDF_Finalize)(void * env);

typedef bool __stdcall (*TWPPDF_SetSProp)(void * env, int id, char * value);

typedef bool __stdcall (*TWPPDF_SetIProp)(void * env, int id, int value);

typedef int __stdcall (*TWPPDF_Action)(void * env, int id, unsigned val, void * param);

typedef bool __stdcall (*TWPPDF_InitializePage)(void * env, int id, PWPPDF_InitRec param);

typedef int __stdcall (*TWPPDF_XPOS)(void * env, int X);

typedef int __stdcall (*TWPPDF_YPOS)(void * env, int Y);

typedef int __stdcall (*TWPPDF_ProcessIt)(void * DataP, char * dest, int destmax, HDC toDC, int mode
	);

typedef bool __stdcall (*TWPPDF_WPTEXEC)(void * env, void * pp, void * pr, void * s, int c, void * pi
	);

#pragma option push -b-
enum TWPDFSecurity { wpp40bit, wpp128bit };
#pragma option pop

#pragma option push -b-
enum WPPDFR1__1 { wpNoBITBLTFillRect, wpNeverFill, wpWhiteBrushIsTransparent, wpExactTextPositioning, 
	wpNoTextRectClipping, wpClipRectSupport, wpDontStackWorldModifications, wpDontAdjustTextSpacing, wpDontCropBitmaps, 
	wpAllowTransparentBit, wpAlwaysHighResPDF, wpNeverHighResPDF, wpUseFontWidthArgument, wpNoTextScaling 
	};
#pragma option pop

typedef Set<WPPDFR1__1, wpNoBITBLTFillRect, wpNoTextScaling>  TWPDevModes;

typedef Exception PDFException;
;

#pragma option push -b-
enum WPPDFR1__2 { wpCreateAutoLinks };
#pragma option pop

typedef Set<WPPDFR1__2, wpCreateAutoLinks, wpCreateAutoLinks>  TWPDFOptions;

#pragma option push -b-
enum TWPPDFFontMode { wpUseTrueTypeFonts, wpEmbedTrueTypeFonts, wpEmbedSymbolTrueTypeFonts, wpUseBase14Type1Fonts, 
	wpEmbedSubsetTrueType_Charsets, wpEmbedSubsetTrueType_UsedChar };
#pragma option pop

#pragma option push -b-
enum TWPCompressStreamMethod { wpCompressNone, wpCompressFlate, wpCompressRunlength, wpCompressFastFlate 
	};
#pragma option pop

#pragma option push -b-
enum TWPEncodeStreamMethod { wpEncodeNone, wpASCII85Encode, wpASCIIHexEncode };
#pragma option pop

#pragma option push -b-
enum TWPPDFPageModes { pwUseNone, wpUseOutlines, wpUseThumbs, wpFullScreen };
#pragma option pop

#pragma option push -b-
enum WPPDFR1__3 { wpOnEmbedFonts };
#pragma option pop

typedef Set<WPPDFR1__3, wpOnEmbedFonts, wpOnEmbedFonts>  TWPExtraMessages;

#pragma option push -b-
enum TWPPDFZoomModes { pwZoomDefault, pwZoomFitPage, pwZoomFitVertical, pwZoomFitHorizontal };
#pragma option pop

#pragma option push -b-
enum TWPPDFCanvasReference { wprefScreen, wprefPrinter };
#pragma option pop

#pragma option push -b-
enum TWPPDFInputfileMode { pwIgnoreInput, pwAppendToInput, wpConvertInputToWatermark, wpUseInputAsWatermark 
	};
#pragma option pop

#pragma option push -b-
enum TWPPDFReadMode { wpdfStandard, wpdfRetrieveASCII, wpdfRetrieveEMF, wpdfRetrieveBMP };
#pragma option pop

#pragma option push -b-
enum WPPDFR1__4 { wpEncryptFile, wpEnablePrinting, wpEnableChanging, wpEnableCopying, wpEnableForms, 
	wpLowQualityPrintOnly };
#pragma option pop

typedef Set<WPPDFR1__4, wpEncryptFile, wpLowQualityPrintOnly>  TWPDFEncryption;

#pragma option push -b-
enum TWPJPEGQuality { wpNoJPEG, wpJPEG_10, wpJPEG_25, wpJPEG_50, wpJPEG_75, wpJPEG_100 };
#pragma option pop

#pragma option push -b-
enum TWPCCITTMode { wpCCITT_31D, wpCCITT_32D, wpCCITT_42D };
#pragma option pop

typedef void __fastcall (__closure *TWPPDFUpdateGaugeEvent)(System::TObject* Sender, int position);

typedef void __fastcall (__closure *TWPDFErrorEvent)(System::TObject* Sender, int num, AnsiString text
	);

typedef void __fastcall (__closure *TWPDFMergeTextEvent)(System::TObject* Sender, AnsiString &Text);
	

typedef void __fastcall (__closure *TWPDFInternalEvent)(System::TObject* Sender, void * p);

typedef void __fastcall (__closure *TWPDFReadInputPDF)(System::TObject* Sender, int page_num, const 
	AnsiString text, System::TObject* &obj);

typedef void __fastcall (__closure *TWPDFReadWatermarkMeta)(System::TObject* Sender, int PageNumber, 
	unsigned &MetaHandle, AnsiString &MetaFile);

class DELPHICLASS TWPPDFExportInfo;
class PASCALIMPLEMENTATION TWPPDFExportInfo : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	AnsiString FAuthor;
	System::TDateTime FDate;
	System::TDateTime FModDate;
	AnsiString FProducer;
	AnsiString FTitle;
	AnsiString FSubject;
	AnsiString FKeywords;
	
__published:
	__property AnsiString Author = {read=FAuthor, write=FAuthor};
	__property AnsiString Producer = {read=FProducer, write=FProducer};
	__property AnsiString Title = {read=FTitle, write=FTitle};
	__property AnsiString Subject = {read=FSubject, write=FSubject};
	__property AnsiString Keywords = {read=FKeywords, write=FKeywords};
	
public:
	__property System::TDateTime Date = {read=FDate, write=FDate};
	__property System::TDateTime ModDate = {read=FModDate, write=FModDate};
	virtual void __fastcall Assign(Classes::TPersistent* Source);
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TWPPDFExportInfo(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TWPPDFExportInfo(void) : Classes::TPersistent() { }
	#pragma option pop
	
};


class DELPHICLASS TWPCustomPDFExport;
class PASCALIMPLEMENTATION TWPCustomPDFExport : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
protected:
	bool DLLOK;
	int FDLLInUSE;
	int DLLHandle;
	void __fastcall UnLoadDLL(void);
	bool __fastcall LoadDLL(AnsiString fname);
	Graphics::TCanvas* wpdf_canvas;
	bool FAbort;
	void *pdf_env;
	AnsiString FFilename;
	TWPPDFCanvasReference FCanvasReference;
	HDC FReferenceDC;
	bool FPrinting;
	AnsiString FMergeStart;
	TWPPDFExportInfo* FInfo;
	Classes::TStream* FStream;
	TWPEncodeStreamMethod FEncodeStreamMethod;
	TWPCompressStreamMethod FCompressStreamMethod;
	TWPPDFInputfileMode FInputfileMode;
	TWPDFReadWatermarkMeta FOnReadWatermarkMeta;
	int FInputPageCount;
	bool FPageIsOpen;
	AnsiString FInputFile;
	int FDefaultXRes;
	int FDefaultYRes;
	TWPDFEncryption FEncryption;
	TWPDFSecurity FSecurity;
	TWPDevModes FModes;
	TWPDFOptions FOptions;
	AnsiString FUserPassword;
	AnsiString FOwnerPassword;
	TWPPDFPageModes FPageMode;
	TWPPDFZoomModes FZoomMode;
	TWPPDFFontMode FFontMode;
	bool FCreateThumbnails;
	bool FCreateOutlines;
	bool FDrawCanvasMeta;
	bool FConvertJPEGData;
	bool FStartPageAtOnce;
	bool FAutoLaunch;
	int FLastError;
	bool FDebugMode;
	AnsiString FDebugWMFPath;
	TWPPDFUpdateGaugeEvent FOnUpdateGauge;
	TWPPDFReadMode FPDFReadMode;
	TWPDFReadInputPDF FOnReadInputPDF;
	TWPJPEGQuality FJPEGQuality;
	int FPageCount;
	bool FInMemoryMode;
	Graphics::TColor FHeaderFooterColor;
	int FInternPageNumber;
	Classes::TNotifyEvent FBeforeBeginDoc;
	Classes::TNotifyEvent FAfterBeginDoc;
	Classes::TNotifyEvent FBeforeEndDoc;
	Classes::TNotifyEvent FAfterEndDoc;
	TWPDFErrorEvent FOnError;
	TWPDFMergeTextEvent FOnMerge;
	TWPDFInternalEvent FOnExtraI;
	Classes::TStringList* FExcludedFonts;
	TWPExtraMessages FExtraMessages;
	int FInternPageCount;
	Graphics::TCanvas* FCanvas;
	Graphics::TMetafile* FMetafile;
	#pragma pack(push, 1)
	TWPPDF_InitRec Finit;
	#pragma pack(pop)
	
	bool FKeepInitValues;
	Classes::TStringList* FWatermarks;
	int FSizeAttr;
	int FSizeParagraph;
	int FSizeLine;
	int FLastWidth;
	int FLastHeight;
	int Fpage_xres;
	int Fpage_yres;
	int FReadPageWidth;
	int FReadPageHeight;
	int FPDFReadBitmapRes;
	Classes::TStrings* __fastcall GetExcludedFonts(void);
	void __fastcall SetFilename(AnsiString x);
	Graphics::TCanvas* __fastcall GetCanvas(void);
	void __fastcall SetExcludedFonts(Classes::TStrings* x);
	void __fastcall SetMergeStart(AnsiString x);
	void __fastcall SetJPEGQuality(TWPJPEGQuality x);
	void __fastcall SetModes(TWPDevModes x);
	void __fastcall SetOptions(TWPDFOptions x);
	void __fastcall SetInfo(TWPPDFExportInfo* x);
	void __fastcall SetPrinting(bool x);
	void __fastcall SetDLLName(AnsiString x);
	AnsiString __fastcall GetDLLName();
	virtual void __fastcall PreparePage(int pageno, TWPPDF_InitRec &init, int ResX, int ResY);
	void __fastcall InternStartPage(bool aPage, const AnsiString aName, int pagew, int pageh, int xres, 
		int yres, int options);
	__property Graphics::TColor HeaderFooterColor = {read=FHeaderFooterColor, write=FHeaderFooterColor, 
		nodefault};
	int __fastcall InternDrawBitmap(int x, int y, int w, int h, TWPGraphicDef &bitdef);
	AnsiString __fastcall PrepareWatermark(int pagew, int pageh, int xres, int yres);
	void __fastcall UpdateReferenceCanvas(bool start);
	
public:
	__property bool ConvertJPEGData = {read=FConvertJPEGData, write=FConvertJPEGData, nodefault};
	__fastcall virtual TWPCustomPDFExport(Classes::TComponent* aOwner);
	__fastcall virtual ~TWPCustomPDFExport(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	virtual void __fastcall BeginDoc(void);
	virtual void __fastcall CloseCanvas(void);
	virtual void __fastcall EndPage(void);
	virtual void __fastcall StartPage(int pagew, int pageh, int xres, int yres, int rotation);
	int __fastcall InternEngineCommand(int ID, const AnsiString Command);
	virtual void __fastcall Abort(void);
	virtual void __fastcall EndDoc(void);
	__property bool Printing = {read=FPrinting, write=SetPrinting, nodefault};
	__property Classes::TStream* Stream = {read=FStream, write=FStream};
	__property int PageCount = {read=FPageCount, write=FPageCount, nodefault};
	__property int PageNumber = {read=FInternPageNumber, nodefault};
	__property AnsiString DLLName = {read=GetDLLName, write=SetDLLName};
	__property bool Aborted = {read=FAbort, nodefault};
	__property int LastError = {read=FLastError, nodefault};
	__property int InputPageCount = {read=FInputPageCount, nodefault};
	void __fastcall SetBookmark(const AnsiString BookMarkName, int x, int y);
	void __fastcall SetLinkArea(const AnsiString BookMarkName, const Windows::TRect &r);
	void __fastcall SetOutlineCharset(int CharSet);
	int __fastcall SetOutlineXY(const AnsiString Caption, int X, int Y, int aPrevious, int aParent);
	int __fastcall SetOutline(const AnsiString Caption, const AnsiString BookMarkName, int aPrevious, int 
		aParent);
	int __fastcall SetOutlineXYW(const System::PWideString pCaption, int x, int y, int aPrevious, int aParent
		);
	int __fastcall SetOutlineW(const WideString Caption, const WideString BookMarkName, int aPrevious, 
		int aParent);
	void __fastcall StartWatermark(const AnsiString Name, int pagew, int pageh, int xres, int yres);
	void __fastcall EndWatermark(void);
	void __fastcall UseWatermark(const AnsiString Name);
	void __fastcall UseWatermarkEx(const AnsiString Name, int Width, int Height, int Angle);
	void __fastcall UsePDFWatermark(int InputPageNo);
	void __fastcall UseXForm(const AnsiString Name, int x, int y, int w, int h);
	void __fastcall UseXFormEx(const AnsiString Name, int x, int y, int w, int h, int angle);
	void __fastcall InitDC(void);
	void __fastcall DrawRotatedText(const AnsiString Text, int Angle, int Left, int Top, int Width, int 
		Height, Classes::TAlignment Alignment, const Graphics::TFont* Font);
	int __fastcall DrawTGraphic(int x, int y, int w, int h, Graphics::TGraphic* Graphic);
	int __fastcall DrawGraphicFile(int x, int y, int w, int h, const AnsiString FileName);
	int __fastcall DrawJPEG(int x, int y, int w, int h, int SourceW, int SourceH, char * Buffer, int BufLen
		);
	int __fastcall DrawCCITT(int x, int y, int w, int h, int SourceColumns, int SourceRows, TWPCCITTMode 
		mode, char * Buffer, int BufLen);
	void __fastcall DrawMetafile(int x, int y, unsigned meta);
	void __fastcall DrawMetafileEx(int x, int y, int w, int h, unsigned meta, int DrawCanvasMetaXRes, int 
		DrawCanvasMetaYRes);
	int __fastcall DrawBitmap(int x, int y, int w, int h, UINT handle);
	int __fastcall DrawDIBBitmap(int x, int y, int w, int h, Windows::PBitmapInfo BitmapInfo, void * BitmapBits
		);
	int __fastcall DrawBitmapClone(int x, int y, int w, int h, int LastBitmapID);
	void __fastcall EnlargeFontWidth(int percent);
	void __fastcall Command(const AnsiString s, unsigned val);
	__property Graphics::TCanvas* Canvas = {read=GetCanvas};
	__property bool DebugMode = {read=FDebugMode, write=FDebugMode, nodefault};
	__property AnsiString DebugMetafilePath = {read=FDebugWMFPath, write=FDebugWMFPath};
	__property TWPDFInternalEvent OnExtraInfo = {read=FOnExtraI, write=FOnExtraI};
	__property int XPixelsPerInch = {read=Fpage_xres, nodefault};
	__property int YPixelsPerInch = {read=Fpage_yres, nodefault};
	__property void * dll_pdf_env = {read=pdf_env};
	__property int ReadPageWidth = {read=FReadPageWidth, write=FReadPageWidth, nodefault};
	__property int ReadPageHeight = {read=FReadPageHeight, write=FReadPageHeight, nodefault};
	__property int PDFReadBitmapRes = {read=FPDFReadBitmapRes, write=FPDFReadBitmapRes, nodefault};
	__property TWPDFReadInputPDF OnReadInputPDF = {read=FOnReadInputPDF, write=FOnReadInputPDF};
	__property TWPDFReadWatermarkMeta OnReadWatermarkMeta = {read=FOnReadWatermarkMeta, write=FOnReadWatermarkMeta
		};
	
__published:
	__property TWPPDFReadMode PDFReadMode = {read=FPDFReadMode, write=FPDFReadMode, nodefault};
	__property TWPPDFCanvasReference CanvasReference = {read=FCanvasReference, write=FCanvasReference, 
		nodefault};
	__property AnsiString Filename = {read=FFilename, write=SetFilename};
	__property bool AutoLaunch = {read=FAutoLaunch, write=FAutoLaunch, nodefault};
	__property TWPEncodeStreamMethod EncodeStreamMethod = {read=FEncodeStreamMethod, write=FEncodeStreamMethod
		, nodefault};
	__property TWPCompressStreamMethod CompressStreamMethod = {read=FCompressStreamMethod, write=FCompressStreamMethod
		, nodefault};
	__property TWPPDFExportInfo* Info = {read=FInfo, write=SetInfo};
	__property bool CreateThumbnails = {read=FCreateThumbnails, write=FCreateThumbnails, nodefault};
	__property bool CreateOutlines = {read=FCreateOutlines, write=FCreateOutlines, nodefault};
	__property TWPDevModes Modes = {read=FModes, write=SetModes, nodefault};
	__property TWPDFOptions Options = {read=FOptions, write=SetOptions, nodefault};
	__property Classes::TStrings* ExcludedFonts = {read=GetExcludedFonts, write=SetExcludedFonts};
	__property TWPPDFPageModes PageMode = {read=FPageMode, write=FPageMode, nodefault};
	__property TWPPDFZoomModes ZoomMode = {read=FZoomMode, write=FZoomMode, nodefault};
	__property TWPPDFFontMode FontMode = {read=FFontMode, write=FFontMode, nodefault};
	__property TWPDFEncryption Encryption = {read=FEncryption, write=FEncryption, nodefault};
	__property TWPDFSecurity Security = {read=FSecurity, write=FSecurity, nodefault};
	__property AnsiString UserPassword = {read=FUserPassword, write=FUserPassword};
	__property AnsiString OwnerPassword = {read=FOwnerPassword, write=FOwnerPassword};
	__property AnsiString MergeStart = {read=FMergeStart, write=SetMergeStart};
	__property bool InMemoryMode = {read=FInMemoryMode, write=FInMemoryMode, nodefault};
	__property TWPJPEGQuality JPEGQuality = {read=FJPEGQuality, write=SetJPEGQuality, nodefault};
	__property TWPExtraMessages ExtraMessages = {read=FExtraMessages, write=FExtraMessages, nodefault};
		
	__property TWPPDFInputfileMode InputfileMode = {read=FInputfileMode, write=FInputfileMode, nodefault
		};
	__property AnsiString InputFile = {read=FInputFile, write=FInputFile};
	__property Classes::TNotifyEvent BeforeBeginDoc = {read=FBeforeBeginDoc, write=FBeforeBeginDoc};
	__property Classes::TNotifyEvent AfterBeginDoc = {read=FAfterBeginDoc, write=FAfterBeginDoc};
	__property Classes::TNotifyEvent BeforeEndDoc = {read=FBeforeEndDoc, write=FBeforeEndDoc};
	__property Classes::TNotifyEvent AfterEndDoc = {read=FAfterEndDoc, write=FAfterEndDoc};
	__property TWPDFErrorEvent OnError = {read=FOnError, write=FOnError};
	__property TWPDFMergeTextEvent OnMergeText = {read=FOnMerge, write=FOnMerge};
	__property TWPPDFUpdateGaugeEvent OnUpdateGauge = {read=FOnUpdateGauge, write=FOnUpdateGauge};
};


#pragma option push -b-
enum TWPDFPagesImportMode { wpdfReadASCII, wpdfReadBitmap, wpdfReadMetafile };
#pragma option pop

class DELPHICLASS TWPDFImportedPage;
class PASCALIMPLEMENTATION TWPDFImportedPage : public System::TObject 
{
	typedef System::TObject inherited;
	
private:
	Graphics::TGraphic* FGraphic;
	int FWidth;
	int FHeight;
	AnsiString FText;
	int FNumber;
	
public:
	__fastcall virtual ~TWPDFImportedPage(void);
	__property Graphics::TGraphic* Graphic = {read=FGraphic};
	__property int Width = {read=FWidth, nodefault};
	__property int Height = {read=FHeight, nodefault};
	__property int Number = {read=FNumber, nodefault};
	__property AnsiString Text = {read=FText};
	Graphics::TGraphic* __fastcall GetGraphicAndNil(void);
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TWPDFImportedPage(void) : System::TObject() { }
	#pragma option pop
	
};


typedef void __fastcall (__closure *TWPDFPagesImportEvent)(System::TObject* Sender, int PageNumber, 
	bool &Abort, bool &Import);

class DELPHICLASS TWPDFPagesImport;
class PASCALIMPLEMENTATION TWPDFPagesImport : public Classes::TComponent 
{
	typedef Classes::TComponent inherited;
	
private:
	TWPCustomPDFExport* FEngine;
	TWPDFPagesImportMode FMode;
	AnsiString FPDFFile;
	int FPageNumber;
	Classes::TList* FPages;
	int FFromPage;
	int FToPage;
	int FBitmapResolution;
	int FMaxPageWidth;
	int FMaxPageHeight;
	TWPDFPagesImportEvent FBeforeReadPage;
	int __fastcall GetPageCount(void);
	TWPDFImportedPage* __fastcall GetPage(int index);
	void __fastcall ExtractPDFPage(System::TObject* Sender, int page_num, const AnsiString text, System::TObject* 
		&obj);
	
public:
	__fastcall virtual TWPDFPagesImport(Classes::TComponent* aOwner);
	__fastcall virtual ~TWPDFPagesImport(void);
	void __fastcall Clear(void);
	bool __fastcall Execute(void);
	void __fastcall SetDLLName(const AnsiString x);
	__property int PageCount = {read=GetPageCount, nodefault};
	__property TWPDFImportedPage* Pages[int index] = {read=GetPage};
	__property int MaxPageWidth = {read=FMaxPageWidth, nodefault};
	__property int MaxPageHeight = {read=FMaxPageHeight, nodefault};
	
__published:
	__property TWPDFPagesImportMode Mode = {read=FMode, write=FMode, nodefault};
	__property int BitmapResolution = {read=FBitmapResolution, write=FBitmapResolution, nodefault};
	__property AnsiString PDFFile = {read=FPDFFile, write=FPDFFile};
	__property int FromPage = {read=FFromPage, write=FFromPage, nodefault};
	__property int ToPage = {read=FToPage, write=FToPage, nodefault};
	__property TWPDFPagesImportEvent BeforeReadPage = {read=FBeforeReadPage, write=FBeforeReadPage};
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint WPOut_SameLevel = 0x0;
static const Shortint WPOut_NextLevel = 0x1;
static const Shortint WPOut_PreviousLevel = 0x2;
static const Shortint WPOut_SetLevel = 0x3;
static const Shortint WPOut_SetAsChild = 0x4;
static const Shortint WPOut_SetAsNext = 0x5;
static const Shortint WPDM_XYZ = 0x0;
static const Shortint WPDM_FIT = 0x1;
static const Shortint WPDM_FITV = 0x2;
static const Shortint WPDM_FitH = 0x3;
static const Shortint WPDM_FITR = 0x4;
static const Shortint WPDM_FitB = 0x5;
static const Shortint WPDM_FitBV = 0x6;
static const Shortint WPDM_FitBH = 0x7;
static const Shortint WPPDF_CALL_ERROR = 0x1;
static const Shortint WPPDF_CALL_INFO_IMPORT = 0x2;
static const Shortint WPPDF_CALL_EXTRA_INFO_IMPORT = 0x3;
static const Shortint WPPDF_CALL_MERGE = 0x4;
static const Word WPPDF_Base0 = 0x11b4;
static const Word WPPDF_Base = 0x11b4;
static const Shortint WPPDF_Author = 0x1;
static const Shortint WPPDF_Date = 0x2;
static const Shortint WPPDF_ModDate = 0x3;
static const Shortint WPPDF_Producer = 0x4;
static const Shortint WPPDF_Title = 0x5;
static const Shortint WPPDF_Subject = 0x6;
static const Shortint WPPDF_Keywords = 0x7;
static const Shortint WPPDF_Creator = 0x8;
static const Shortint WPPDF_ExcludedFonts = 0x9;
static const Shortint WPPDF_OwnerPassword = 0xa;
static const Shortint WPPDF_UserPassword = 0xb;
static const Shortint WPPDF_InputFile = 0xc;
static const Shortint WPPDF_IncludedFonts = 0xd;
static const Shortint WPPDF_MERGESTARTTEXT = 0xe;
static const Shortint WPPDF_MERGETEXTRESULT = 0xf;
static const Shortint WPPDF_ENCODE = 0x1;
static const Shortint WPPDF_COMPRESSION = 0x2;
static const Shortint WPPDF_PAGEMODE = 0x3;
static const Shortint WPPDF_USEFONTMODE = 0x4;
static const Shortint WPPDF_FastCompress = 0x5;
static const Shortint WPPDF_ConvertJPEGData = 0x6;
static const Shortint WPPDF_Encryption = 0x7;
static const Shortint WPPDF_InputFileMode = 0x8;
static const Shortint WPPDF_ReadPDFMode = 0x9;
static const Shortint WPPDF_EngineVersion = 0xa;
static const Shortint WPPDF_MonochromeThumbnail = 0xb;
static const Shortint WPPDF_JPEGCompress = 0xc;
static const Shortint WPPDF_XCOMPRESSION = 0xd;
static const Shortint WPPDF_ZOOMMODE = 0xe;
static const Shortint WPPDF_Security = 0xf;
static const Shortint WPPDF_MsgEmbedFont = 0x15;
static const Shortint WPPDF_FontWidthMult = 0x16;
static const Shortint WPPDF_EnhancedOptions = 0x17;
static const Shortint WPPDF_OutlineCharset = 0x18;
static const Shortint WPPDF_UseThumbNails = 0x19;
static const Shortint WPPDF_DevModes = 0x1a;
static const Shortint WPPDF_PDFOptions = 0x1b;
static const Word WPPDF_BEGINDOC = 0x11b5;
static const Word WPPDF_ENDDOC = 0x11b6;
static const Word WPPDF_STARTPAGE = 0x11b7;
static const Word WPPDF_ENDPAGE = 0x11b8;
static const Word WPPDF_GETBUF = 0x11b9;
static const Word WPPDF_WRITEFILE = 0x11ba;
static const Word WPPDF_FINISH = 0x11bb;
static const Word WPPDF_SETPAGETHUMB = 0x11bc;
static const Word WPPDF_SETLINK = 0x11bd;
static const Word WPPDF_SETNAME = 0x11be;
static const Word WPPDF_SETOUTLINE = 0x11bf;
static const Word WPPDF_ENHMETAFILE = 0x11c0;
static const Word WPPDF_STARTXFORM = 0x11c1;
static const Word WPPDF_ENDXFORM = 0x11c2;
static const Word WPPDF_USEXFORM = 0x11c3;
static const Word WPPDF_COMMAND = 0x11c4;
static const Word WPPDF_EXBITMAP = 0x11c5;
static const Word WPPDF_FIELD = 0x11c6;
static const Word WPPDF_InitDC = 0x11c7;
static const Word WPPDF_AddAction = 0x11c8;
static const Word WPPDF_UseAction = 0x11c9;
extern PACKAGE TWPPDF_Action WPPDF_Action;
extern PACKAGE TWPPDF_WPTEXEC _WPPDF_WPTEXEC;
extern PACKAGE TWPPDF_SetIProp WPPDF_SetIProp;
extern PACKAGE void __fastcall WPDF_Start(const AnsiString name, const AnsiString code);

}	/* namespace Wppdfr1 */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Wppdfr1;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// WPPDFR1
